package com.saer.server.network.red;

import java.net.Socket;

import com.saer.server.service.NetworkService;

public class AtencionAlCliente extends Thread {
	private ServerKeepAliveSocket ka_sock;
	private NetworkService networkService;

	public AtencionAlCliente(Socket socket_cliente,	NetworkService networkService, ConectionManager cm2) {

		this.networkService = networkService;
		
		ka_sock = new ServerKeepAliveSocket(socket_cliente, cm2);
		
		ka_sock.setKeepAlive(false);
	}

	public void run() {
		ka_sock.addListener(networkService);
	}

}
